/**
 * 连接数据库
 */
const mongoose = require('mongoose')
mongoose.connect('mongodb://localhost:27017/jd_project', { useNewUrlParser: true })
const conn = mongoose.connection
conn.on('connected', () => {
  console.log('Mongoose connection success');
})

